import Vue from "vue";
const state = {
    selectData:{}, // 被选中的模型元素
    selectedList:[],
    selectedNodeID:-1,
    selectedNode:{},//被选中的树节点
}
const mutations = {
    save_selectData(state, item) {
        state.selectData = item;
        console.log("state.selectData", item);
    },
    save_selectedList(state, item) {
        state.selectedList[0] = item;
        console.log("state.selectedList", state.selectedList);
    },
    save_selectedNode(state,item) {
        state.selectedNode = item;
        console.log("state.selectedNode", state.selectedNode);
    },
    save_selectedNodeID(state,ID) {
        state.selectedNodeID = ID;
        console.log("state.selectedNodeID", state.selectedNodeID);
    },
}
export default {
    state,
    mutations,
};
